<template>
  <div>
    <el-empty description="404">
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </el-empty>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const $router = useRouter()
const goHome = () => {
  $router.push({
    path: '/'
  })
}
</script>

<style scoped></style>
